package cn.lcfms.app.admin.bean;

import cn.lcfms.bin.annotation.Column;
import cn.lcfms.bin.annotation.Table;

//注解表名
@Table("demo")
public class DemoBean {
	//注解主键id，类型是int，自增，无符号
	@Column(Type="int",PrimaryKey=true,AutoIncrement=true,Unsigned=true)
	private long id;
	
	//注解字段s，类型是varchar(255)，有默认值
	@Column(Type="varchar",Length=255,Default="默认值")
	private String s;
	
	//注解字段i，类型是float(10,2),不能为空
	@Column(Type="float",Length=10,Decimal=2,Null=false)
	private int i;
	
	private String t;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getS() {
		return s;
	}

	public void setS(String s) {
		this.s = s;
	}

	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}

	public String getT() {
		return t;
	}

	public void setT(String t) {
		this.t = t;
	}
	
}
